package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 我购买的礼券
 * </p>
 *
 * @author ruiyifeng123
 * @since 2019-03-25
 */
@TableName("wz_coupon_order")
public class WzCouponOrder extends Model<WzCouponOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "coupon_order_id", type = IdType.ID_WORKER)
    private Long couponOrderId;
    /**
     * 礼券id
     */
    @TableField("coupon_id")
    private Long couponId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * 购买数量
     */
    private Integer quantity;
    /**
     * 订单数量
     */
    @TableField("order_number")
    private Integer orderNumber;
    /**
     * 使用数量
     */
    @TableField("used_number")
    private Integer usedNumber;
    /**
     * 状态：0-待支付;1-已支付;2-失效;
     */
    private Integer status;
    /**
     * 支付时间
     */
    @TableField("pay_time")
    private Date payTime;
    /**
     * 原价
     */
    private Integer amount;
    /**
     * 现金支付金额
     */
    @TableField("cash_amount")
    private Integer cashAmount;
    /**
     * 积分抵扣金额
     */
    @TableField("reward_amount")
    private Integer rewardAmount;
    /**
     * 用户收货地址
     */
    @TableField("user_info_id")
    private String userInfoId;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getCouponOrderId() {
        return couponOrderId;
    }

    public void setCouponOrderId(Long couponOrderId) {
        this.couponOrderId = couponOrderId;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Integer orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getUsedNumber() {
        return usedNumber;
    }

    public void setUsedNumber(Integer usedNumber) {
        this.usedNumber = usedNumber;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getCashAmount() {
        return cashAmount;
    }

    public void setCashAmount(Integer cashAmount) {
        this.cashAmount = cashAmount;
    }

    public Integer getRewardAmount() {
        return rewardAmount;
    }

    public void setRewardAmount(Integer rewardAmount) {
        this.rewardAmount = rewardAmount;
    }

    public String getUserInfoId() {
        return userInfoId;
    }

    public void setUserInfoId(String userInfoId) {
        this.userInfoId = userInfoId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.couponOrderId;
    }

    @Override
    public String toString() {
        return "WzCouponOrder{" +
        "couponOrderId=" + couponOrderId +
        ", couponId=" + couponId +
        ", userCode=" + userCode +
        ", nickName=" + nickName +
        ", avatarUrl=" + avatarUrl +
        ", quantity=" + quantity +
        ", orderNumber=" + orderNumber +
        ", usedNumber=" + usedNumber +
        ", status=" + status +
        ", payTime=" + payTime +
        ", amount=" + amount +
        ", cashAmount=" + cashAmount +
        ", rewardAmount=" + rewardAmount +
        ", userInfoId=" + userInfoId +
        ", createTime=" + createTime +
        "}";
    }
}
